import window from './window';

do { window::mount Root };

const Root: ui::Component :=
    \ ok := use { ui::State Yes },
    { { ui::StyledContainer ['container'] } [
        { ui::Checkbox ok },
        { ui::Label (ok.{watch} map &(ok) =>
            if ok: 'checked', else: 'not-checked'
        ) },
        { ui::Button ('toggle', (ok update not)) }
    ] };
